import request from "@/api";

// 更新pv和uv
export function updateTraffic(data) {
    return request({
      url: "/api/statistics/updateTraffic",
      method: "post",
      data: data,
    });
  }

// 文章访问量+1
export function increaseArticleVisits(data) {
  return request({
    url: "/api/statistics/increaseArticleVisits",
    method: "post",
    data: data,
  });
}